package com.ybkj.o2o.zhuanche.entity;

import com.ybkj.o2o.zhuanche.common.json.DateTimeJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.io.Serializable;
import java.util.Date;

/**
 * 车型关联车型价格和图片.
 * 
 * @author Linch
 *
 */
public class CarTypeDetail implements Serializable {

  private static final long serialVersionUID = 1L;
  
  private Long id;
  
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date created;// 创建时间
  
  @JsonSerialize(using = DateTimeJsonSerializer.class)
  private Date updated;// 修改时间

  private Long carTypeId;// 车型id

  private String carTypeName;// 车型名称

  private String priceDetail;// 价格详情 (￥ 18 　起租价 + ￥ 0.5 / 分钟 + ￥ 2.5 / 公里)

  private String startPrice;
  
  private String timePrice;
  
  private String miliagePrice;
  
  private String photo;// 客户端网页后台显示的地址

  private String appKey;

  public Long getId() {
    return id;
  }

  public void setId(Long id) {
    this.id = id;
  }

  public Date getCreated() {
    return created;
  }

  public void setCreated(Date created) {
    this.created = created;
  }

  public Date getUpdated() {
    return updated;
  }

  public void setUpdated(Date updated) {
    this.updated = updated;
  }

  public Long getCarTypeId() {
    return carTypeId;
  }

  public void setCarTypeId(Long carTypeId) {
    this.carTypeId = carTypeId;
  }

  public String getCarTypeName() {
    return carTypeName;
  }

  public void setCarTypeName(String carTypeName) {
    this.carTypeName = carTypeName;
  }

  public String getPriceDetail() {
    return priceDetail;
  }

  public void setPriceDetail(String priceDetail) {
    this.priceDetail = priceDetail;
  }
  
  public String getStartPrice() {
    return startPrice;
  }

  public void setStartPrice(String startPrice) {
    this.startPrice = startPrice;
  }

  public String getTimePrice() {
    return timePrice;
  }

  public void setTimePrice(String timePrice) {
    this.timePrice = timePrice;
  }

  public String getMiliagePrice() {
    return miliagePrice;
  }

  public void setMiliagePrice(String miliagePrice) {
    this.miliagePrice = miliagePrice;
  }

  public String getPhoto() {
    return photo;
  }

  public void setPhoto(String photo) {
    this.photo = photo;
  }

  public String getAppKey() {
    return appKey;
  }

  public void setAppKey(String appKey) {
    this.appKey = appKey;
  }

  @Override
  public String toString() {
    return "CarTypeDetail [id=" + id + ", created=" + created + ", updated=" + updated
        + ", carTypeId=" + carTypeId + ", carTypeName=" + carTypeName + ", priceDetail="
        + priceDetail + ", photo=" + photo + ", appKey=" + appKey + "]";
  }

}
